//
//  UILabel+Extension.swift
//  MyWeibo
//
//  Created by tanchao on 15/8/6.
//  Copyright © 2015年 chaoren. All rights reserved.
//

import UIKit
// MARK: - UILabel
extension UILabel{

    /// UILabel 便利构造函数
    ///
    /// - parameter text_Color    : 字体颜色
    /// - parameter font_Size     : 字体大小
    /// - parameter number_OfLines: 行数(默认为1)
    /// - parameter preferredMaxWidth: 折行宽度(默认为max)
    ///
    /// - returns: UILabel
    convenience init(text_Color:UIColor,font_Size:CGFloat,number_OfLines:Int = 1,preferredMaxWidth :CGFloat = CGFloat.max){
        self.init()
        textColor = text_Color
        font = UIFont.systemFontOfSize(font_Size)
        numberOfLines = number_OfLines
        preferredMaxLayoutWidth = preferredMaxWidth
    }

}
